
import request from ".."

export const getStatisticsData = async()=>{
  return await request.get('/statistics')
}

export const getCoffeeList = async (params?:any) => { 
  return await request.get('/coffee_list',params)
}

export const getCoffeeDetail = async (id:number) => { 
  return await request.get(`/coffee_detail/${id}`)
}

export const setCoffeeLike = async (id:number) => { 
  return await request.post(`/coffee_like/${id}`)
}
export const setCoffeeView = async (id:number) => { 
  return await request.post(`/coffee_view/${id}`)
}